home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9990 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: kikkin.zko.dec.com!carlson
  2. From: carlson@kikkin.zko.dec.com (Tom Carlson)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: STL on VMS DEC Alpha CXX?
  5. Date: 5 Mar 1996 14:26:59 GMT
  6. Organization: Digital Equipment Corporation
  7. Distribution: world
  8. Message-ID: <4hhivj$ak8@zk2nws.zko.dec.com>
  9. References: <4h225q$32k@clark.net>
  10. Reply-To: carlson@kikkin.zko.dec.com (Tom Carlson)
  11. NNTP-Posting-Host: kikkin.zko.dec.com
  12. X-Newsreader: mxrn 6.18-16
  13.  
  14.  
  15. In article <4h225q$32k@clark.net>, dmpalmer@clark.net (David M. Palmer) writes:
  16. |>Does anybody have a working implementation of STL on the Alpha under VMS
  17. |>using the C++ compiler from DEC CXX.
  18. |>
  19. |>Either a set of patches to the downloads from the HP ftp site, or the
  20. |>name of a commercial vendor with a working version.
  21. |>
  22. |>I am using CXX v 5.2 .
  23. |>
  24. |>When I try to use it, I get loads of errors:
  25. |>
  26. |>$ create test.cxx
  27. |>#include <deque.h>
  28. |>main()
  29. |>{
  30. |>        deque<int> intDeque;
  31. |>}
  32. |> Exit 
  33. |>$ cxx/include_directory=tgrs2$dkb0:[stl] test.cxx
  34. |>
  35. |>    typedef Allocator<T>::reference reference;
  36. |>....................................^
  37. |>%CXX-E-DECLARATION, Invalid declaration.
  38. |>at line number 44 in file TGRS2$DKB0:[STL]DEQUE.H;1
  39. |>
  40. |>    typedef Allocator<T>::const_reference const_reference;
  41. |>..........................................^
  42. |>%CXX-E-DECLARATION, Invalid declaration.
  43. |>at line number 45 in file TGRS2$DKB0:[STL]DEQUE.H;1
  44. |>
  45. |>    typedef Allocator<T>::size_type size_type;
  46. |>....................................^
  47. |>%CXX-E-DECLARATION, Invalid declaration.
  48. |>at line number 46 in file TGRS2$DKB0:[STL]DEQUE.H;1
  49. |>
  50. |>and many more pages.
  51.  
  52. V5.2 does not support auto-instantiation of templates, so you
  53. need to either use   #pragma define_template in your code,
  54. or /TEMPLATE_DEFINE in your compile command.  You can see the
  55. documentation or on-line help for more on these.
  56.  
  57. Digital is currently wrapping up field test for DEC C++ V5.3. 
  58. When released, this release will provide support for both
  59. auto-instantiation and the STL.
  60.  
  61.  
  62. Tom
  63.  
  64. --
  65.  
  66. Thomas Carlson,   DEC C/ DEC C++     carlson@decc.enet.dec.com
  67. Digital Equipment Corporation,  ZK2-3/N30           
  68. 110 Spitbrook Rd,
  69. Nashua, NH  03062
  70.